import request from '#/utils/requestAbort';

export async function queryTradersOptions() {
  return request('/reanalyze/forecastDataAdjustReanalyze/traders', {
    method: 'GET',
  });
}

export async function queryReanalyzeDataData(params) {
  return request('/generation-common/flexible-aggregation/flexibleAggregation', {
    method: 'POST',
    data: params,
  });
}

export async function saveDynamicColumns(params) {
  return request('/reanalyze/generalDynamicColumns/saveDynamicColumns', {
    method: 'POST',
    data: params,
  });
}

export async function getDynamicColumns(params) {
  return request('/reanalyze/generalDynamicColumns/getDynamicColumns', {
    method: 'POST',
    data: params,
  });
}

export async function getDictionaryStatus() {
  return request('/reanalyze/forecastDataAdjustReanalyze/dictionaryStatus', {
    method: 'GET',
  });
}
// 省份-交易中心-场站（数据权限）
export async function queryMarketList(menuCode) {
  return request(`/power/dataPower/common/${menuCode}/t_station`, {
    method: 'GET',
  });
}
